const Base = require('./base/base');

/**
 * @extends base
 */
module.exports = class extends Base {
	encodeAction(param) {
		return Buffer.from(param.text).toJSON().data.map(function(c){return '='+c.toString(16).toUpperCase()}).join('');
	}
	decodeAction(param) {
		return Buffer.from(param.text.replace(/=/g,''),'hex').toString();
	}
}
